#pragma once
// MESSAGE TRACKER_STATUS PACKING

#define MAVLINK_MSG_ID_TRACKER_STATUS 31

MAVPACKED(
typedef struct __mavlink_tracker_status_t {
 uint64_t time_boot_ms; /*< [ms] Timestamp (time since system boot).*/
 float slon; /*< [deg] satellite orbit.*/
 float polar; /*< [deg] polar angle.(-90.0..90.0)(deg)*/
 float llon; /*< [deg] local longitude.*/
 float llat; /*< [deg] local latitude.*/
 float res1; /*<  res1.*/
 float res2; /*<  res2.*/
 float res3; /*<  res3.*/
 float res4; /*<  res4.*/
 float res5; /*<  res5.*/
 float res6; /*<  res6.*/
 uint32_t res7; /*<  res7.*/
 uint32_t sat_id; /*<  satellite ID.*/
 uint8_t mode; /*<  Current mode*/
 uint8_t auto_pos; /*<  true:position from gps.false:position from manual.*/
}) mavlink_tracker_status_t;

#define MAVLINK_MSG_ID_TRACKER_STATUS_LEN 58
#define MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN 58
#define MAVLINK_MSG_ID_31_LEN 58
#define MAVLINK_MSG_ID_31_MIN_LEN 58

#define MAVLINK_MSG_ID_TRACKER_STATUS_CRC 2
#define MAVLINK_MSG_ID_31_CRC 2



#if MAVLINK_COMMAND_24BIT
#define MAVLINK_MESSAGE_INFO_TRACKER_STATUS { \
    31, \
    "TRACKER_STATUS", \
    15, \
    {  { "time_boot_ms", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_tracker_status_t, time_boot_ms) }, \
         { "mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_tracker_status_t, mode) }, \
         { "auto_pos", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_tracker_status_t, auto_pos) }, \
         { "slon", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_tracker_status_t, slon) }, \
         { "polar", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_tracker_status_t, polar) }, \
         { "llon", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_tracker_status_t, llon) }, \
         { "llat", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_tracker_status_t, llat) }, \
         { "res1", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_tracker_status_t, res1) }, \
         { "res2", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_tracker_status_t, res2) }, \
         { "res3", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_tracker_status_t, res3) }, \
         { "res4", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_tracker_status_t, res4) }, \
         { "res5", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_tracker_status_t, res5) }, \
         { "res6", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_tracker_status_t, res6) }, \
         { "res7", NULL, MAVLINK_TYPE_UINT32_T, 0, 48, offsetof(mavlink_tracker_status_t, res7) }, \
         { "sat_id", NULL, MAVLINK_TYPE_UINT32_T, 0, 52, offsetof(mavlink_tracker_status_t, sat_id) }, \
         } \
}
#else
#define MAVLINK_MESSAGE_INFO_TRACKER_STATUS { \
    "TRACKER_STATUS", \
    15, \
    {  { "time_boot_ms", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_tracker_status_t, time_boot_ms) }, \
         { "mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_tracker_status_t, mode) }, \
         { "auto_pos", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_tracker_status_t, auto_pos) }, \
         { "slon", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_tracker_status_t, slon) }, \
         { "polar", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_tracker_status_t, polar) }, \
         { "llon", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_tracker_status_t, llon) }, \
         { "llat", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_tracker_status_t, llat) }, \
         { "res1", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_tracker_status_t, res1) }, \
         { "res2", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_tracker_status_t, res2) }, \
         { "res3", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_tracker_status_t, res3) }, \
         { "res4", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_tracker_status_t, res4) }, \
         { "res5", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_tracker_status_t, res5) }, \
         { "res6", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_tracker_status_t, res6) }, \
         { "res7", NULL, MAVLINK_TYPE_UINT32_T, 0, 48, offsetof(mavlink_tracker_status_t, res7) }, \
         { "sat_id", NULL, MAVLINK_TYPE_UINT32_T, 0, 52, offsetof(mavlink_tracker_status_t, sat_id) }, \
         } \
}
#endif

/**
 * @brief Pack a tracker_status message
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 *
 * @param time_boot_ms [ms] Timestamp (time since system boot).
 * @param mode  Current mode
 * @param auto_pos  true:position from gps.false:position from manual.
 * @param slon [deg] satellite orbit.
 * @param polar [deg] polar angle.(-90.0..90.0)(deg)
 * @param llon [deg] local longitude.
 * @param llat [deg] local latitude.
 * @param res1  res1.
 * @param res2  res2.
 * @param res3  res3.
 * @param res4  res4.
 * @param res5  res5.
 * @param res6  res6.
 * @param res7  res7.
 * @param sat_id  satellite ID.
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_tracker_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
                               uint64_t time_boot_ms, uint8_t mode, uint8_t auto_pos, float slon, float polar, float llon, float llat, float res1, float res2, float res3, float res4, float res5, float res6, uint32_t res7, uint32_t sat_id)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_TRACKER_STATUS_LEN];
    _mav_put_uint64_t(buf, 0, time_boot_ms);
    _mav_put_float(buf, 8, slon);
    _mav_put_float(buf, 12, polar);
    _mav_put_float(buf, 16, llon);
    _mav_put_float(buf, 20, llat);
    _mav_put_float(buf, 24, res1);
    _mav_put_float(buf, 28, res2);
    _mav_put_float(buf, 32, res3);
    _mav_put_float(buf, 36, res4);
    _mav_put_float(buf, 40, res5);
    _mav_put_float(buf, 44, res6);
    _mav_put_uint32_t(buf, 48, res7);
    _mav_put_uint32_t(buf, 52, sat_id);
    _mav_put_uint8_t(buf, 56, mode);
    _mav_put_uint8_t(buf, 57, auto_pos);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_TRACKER_STATUS_LEN);
#else
    mavlink_tracker_status_t packet;
    packet.time_boot_ms = time_boot_ms;
    packet.slon = slon;
    packet.polar = polar;
    packet.llon = llon;
    packet.llat = llat;
    packet.res1 = res1;
    packet.res2 = res2;
    packet.res3 = res3;
    packet.res4 = res4;
    packet.res5 = res5;
    packet.res6 = res6;
    packet.res7 = res7;
    packet.sat_id = sat_id;
    packet.mode = mode;
    packet.auto_pos = auto_pos;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TRACKER_STATUS_LEN);
#endif

    msg->msgid = MAVLINK_MSG_ID_TRACKER_STATUS;
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_CRC);
}

/**
 * @brief Pack a tracker_status message on a channel
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param chan The MAVLink channel this message will be sent over
 * @param msg The MAVLink message to compress the data into
 * @param time_boot_ms [ms] Timestamp (time since system boot).
 * @param mode  Current mode
 * @param auto_pos  true:position from gps.false:position from manual.
 * @param slon [deg] satellite orbit.
 * @param polar [deg] polar angle.(-90.0..90.0)(deg)
 * @param llon [deg] local longitude.
 * @param llat [deg] local latitude.
 * @param res1  res1.
 * @param res2  res2.
 * @param res3  res3.
 * @param res4  res4.
 * @param res5  res5.
 * @param res6  res6.
 * @param res7  res7.
 * @param sat_id  satellite ID.
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_tracker_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
                               mavlink_message_t* msg,
                                   uint64_t time_boot_ms,uint8_t mode,uint8_t auto_pos,float slon,float polar,float llon,float llat,float res1,float res2,float res3,float res4,float res5,float res6,uint32_t res7,uint32_t sat_id)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_TRACKER_STATUS_LEN];
    _mav_put_uint64_t(buf, 0, time_boot_ms);
    _mav_put_float(buf, 8, slon);
    _mav_put_float(buf, 12, polar);
    _mav_put_float(buf, 16, llon);
    _mav_put_float(buf, 20, llat);
    _mav_put_float(buf, 24, res1);
    _mav_put_float(buf, 28, res2);
    _mav_put_float(buf, 32, res3);
    _mav_put_float(buf, 36, res4);
    _mav_put_float(buf, 40, res5);
    _mav_put_float(buf, 44, res6);
    _mav_put_uint32_t(buf, 48, res7);
    _mav_put_uint32_t(buf, 52, sat_id);
    _mav_put_uint8_t(buf, 56, mode);
    _mav_put_uint8_t(buf, 57, auto_pos);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_TRACKER_STATUS_LEN);
#else
    mavlink_tracker_status_t packet;
    packet.time_boot_ms = time_boot_ms;
    packet.slon = slon;
    packet.polar = polar;
    packet.llon = llon;
    packet.llat = llat;
    packet.res1 = res1;
    packet.res2 = res2;
    packet.res3 = res3;
    packet.res4 = res4;
    packet.res5 = res5;
    packet.res6 = res6;
    packet.res7 = res7;
    packet.sat_id = sat_id;
    packet.mode = mode;
    packet.auto_pos = auto_pos;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TRACKER_STATUS_LEN);
#endif

    msg->msgid = MAVLINK_MSG_ID_TRACKER_STATUS;
    return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_CRC);
}

/**
 * @brief Encode a tracker_status struct
 *
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 * @param tracker_status C-struct to read the message contents from
 */
static inline uint16_t mavlink_msg_tracker_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_tracker_status_t* tracker_status)
{
    return mavlink_msg_tracker_status_pack(system_id, component_id, msg, tracker_status->time_boot_ms, tracker_status->mode, tracker_status->auto_pos, tracker_status->slon, tracker_status->polar, tracker_status->llon, tracker_status->llat, tracker_status->res1, tracker_status->res2, tracker_status->res3, tracker_status->res4, tracker_status->res5, tracker_status->res6, tracker_status->res7, tracker_status->sat_id);
}

/**
 * @brief Encode a tracker_status struct on a channel
 *
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param chan The MAVLink channel this message will be sent over
 * @param msg The MAVLink message to compress the data into
 * @param tracker_status C-struct to read the message contents from
 */
static inline uint16_t mavlink_msg_tracker_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_tracker_status_t* tracker_status)
{
    return mavlink_msg_tracker_status_pack_chan(system_id, component_id, chan, msg, tracker_status->time_boot_ms, tracker_status->mode, tracker_status->auto_pos, tracker_status->slon, tracker_status->polar, tracker_status->llon, tracker_status->llat, tracker_status->res1, tracker_status->res2, tracker_status->res3, tracker_status->res4, tracker_status->res5, tracker_status->res6, tracker_status->res7, tracker_status->sat_id);
}

/**
 * @brief Send a tracker_status message
 * @param chan MAVLink channel to send the message
 *
 * @param time_boot_ms [ms] Timestamp (time since system boot).
 * @param mode  Current mode
 * @param auto_pos  true:position from gps.false:position from manual.
 * @param slon [deg] satellite orbit.
 * @param polar [deg] polar angle.(-90.0..90.0)(deg)
 * @param llon [deg] local longitude.
 * @param llat [deg] local latitude.
 * @param res1  res1.
 * @param res2  res2.
 * @param res3  res3.
 * @param res4  res4.
 * @param res5  res5.
 * @param res6  res6.
 * @param res7  res7.
 * @param sat_id  satellite ID.
 */
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS

static inline void mavlink_msg_tracker_status_send(mavlink_channel_t chan, uint64_t time_boot_ms, uint8_t mode, uint8_t auto_pos, float slon, float polar, float llon, float llat, float res1, float res2, float res3, float res4, float res5, float res6, uint32_t res7, uint32_t sat_id)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_TRACKER_STATUS_LEN];
    _mav_put_uint64_t(buf, 0, time_boot_ms);
    _mav_put_float(buf, 8, slon);
    _mav_put_float(buf, 12, polar);
    _mav_put_float(buf, 16, llon);
    _mav_put_float(buf, 20, llat);
    _mav_put_float(buf, 24, res1);
    _mav_put_float(buf, 28, res2);
    _mav_put_float(buf, 32, res3);
    _mav_put_float(buf, 36, res4);
    _mav_put_float(buf, 40, res5);
    _mav_put_float(buf, 44, res6);
    _mav_put_uint32_t(buf, 48, res7);
    _mav_put_uint32_t(buf, 52, sat_id);
    _mav_put_uint8_t(buf, 56, mode);
    _mav_put_uint8_t(buf, 57, auto_pos);

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRACKER_STATUS, buf, MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_CRC);
#else
    mavlink_tracker_status_t packet;
    packet.time_boot_ms = time_boot_ms;
    packet.slon = slon;
    packet.polar = polar;
    packet.llon = llon;
    packet.llat = llat;
    packet.res1 = res1;
    packet.res2 = res2;
    packet.res3 = res3;
    packet.res4 = res4;
    packet.res5 = res5;
    packet.res6 = res6;
    packet.res7 = res7;
    packet.sat_id = sat_id;
    packet.mode = mode;
    packet.auto_pos = auto_pos;

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRACKER_STATUS, (const char *)&packet, MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_CRC);
#endif
}

/**
 * @brief Send a tracker_status message
 * @param chan MAVLink channel to send the message
 * @param struct The MAVLink struct to serialize
 */
static inline void mavlink_msg_tracker_status_send_struct(mavlink_channel_t chan, const mavlink_tracker_status_t* tracker_status)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    mavlink_msg_tracker_status_send(chan, tracker_status->time_boot_ms, tracker_status->mode, tracker_status->auto_pos, tracker_status->slon, tracker_status->polar, tracker_status->llon, tracker_status->llat, tracker_status->res1, tracker_status->res2, tracker_status->res3, tracker_status->res4, tracker_status->res5, tracker_status->res6, tracker_status->res7, tracker_status->sat_id);
#else
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRACKER_STATUS, (const char *)tracker_status, MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_CRC);
#endif
}

#if MAVLINK_MSG_ID_TRACKER_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
/*
  This varient of _send() can be used to save stack space by re-using
  memory from the receive buffer.  The caller provides a
  mavlink_message_t which is the size of a full mavlink message. This
  is usually the receive buffer for the channel, and allows a reply to an
  incoming message with minimum stack space usage.
 */
static inline void mavlink_msg_tracker_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  uint64_t time_boot_ms, uint8_t mode, uint8_t auto_pos, float slon, float polar, float llon, float llat, float res1, float res2, float res3, float res4, float res5, float res6, uint32_t res7, uint32_t sat_id)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_uint64_t(buf, 0, time_boot_ms);
    _mav_put_float(buf, 8, slon);
    _mav_put_float(buf, 12, polar);
    _mav_put_float(buf, 16, llon);
    _mav_put_float(buf, 20, llat);
    _mav_put_float(buf, 24, res1);
    _mav_put_float(buf, 28, res2);
    _mav_put_float(buf, 32, res3);
    _mav_put_float(buf, 36, res4);
    _mav_put_float(buf, 40, res5);
    _mav_put_float(buf, 44, res6);
    _mav_put_uint32_t(buf, 48, res7);
    _mav_put_uint32_t(buf, 52, sat_id);
    _mav_put_uint8_t(buf, 56, mode);
    _mav_put_uint8_t(buf, 57, auto_pos);

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRACKER_STATUS, buf, MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_CRC);
#else
    mavlink_tracker_status_t *packet = (mavlink_tracker_status_t *)msgbuf;
    packet->time_boot_ms = time_boot_ms;
    packet->slon = slon;
    packet->polar = polar;
    packet->llon = llon;
    packet->llat = llat;
    packet->res1 = res1;
    packet->res2 = res2;
    packet->res3 = res3;
    packet->res4 = res4;
    packet->res5 = res5;
    packet->res6 = res6;
    packet->res7 = res7;
    packet->sat_id = sat_id;
    packet->mode = mode;
    packet->auto_pos = auto_pos;

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRACKER_STATUS, (const char *)packet, MAVLINK_MSG_ID_TRACKER_STATUS_MIN_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_LEN, MAVLINK_MSG_ID_TRACKER_STATUS_CRC);
#endif
}
#endif

#endif

// MESSAGE TRACKER_STATUS UNPACKING


/**
 * @brief Get field time_boot_ms from tracker_status message
 *
 * @return [ms] Timestamp (time since system boot).
 */
static inline uint64_t mavlink_msg_tracker_status_get_time_boot_ms(const mavlink_message_t* msg)
{
    return _MAV_RETURN_uint64_t(msg,  0);
}

/**
 * @brief Get field mode from tracker_status message
 *
 * @return  Current mode
 */
static inline uint8_t mavlink_msg_tracker_status_get_mode(const mavlink_message_t* msg)
{
    return _MAV_RETURN_uint8_t(msg,  56);
}

/**
 * @brief Get field auto_pos from tracker_status message
 *
 * @return  true:position from gps.false:position from manual.
 */
static inline uint8_t mavlink_msg_tracker_status_get_auto_pos(const mavlink_message_t* msg)
{
    return _MAV_RETURN_uint8_t(msg,  57);
}

/**
 * @brief Get field slon from tracker_status message
 *
 * @return [deg] satellite orbit.
 */
static inline float mavlink_msg_tracker_status_get_slon(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  8);
}

/**
 * @brief Get field polar from tracker_status message
 *
 * @return [deg] polar angle.(-90.0..90.0)(deg)
 */
static inline float mavlink_msg_tracker_status_get_polar(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  12);
}

/**
 * @brief Get field llon from tracker_status message
 *
 * @return [deg] local longitude.
 */
static inline float mavlink_msg_tracker_status_get_llon(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  16);
}

/**
 * @brief Get field llat from tracker_status message
 *
 * @return [deg] local latitude.
 */
static inline float mavlink_msg_tracker_status_get_llat(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  20);
}

/**
 * @brief Get field res1 from tracker_status message
 *
 * @return  res1.
 */
static inline float mavlink_msg_tracker_status_get_res1(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  24);
}

/**
 * @brief Get field res2 from tracker_status message
 *
 * @return  res2.
 */
static inline float mavlink_msg_tracker_status_get_res2(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  28);
}

/**
 * @brief Get field res3 from tracker_status message
 *
 * @return  res3.
 */
static inline float mavlink_msg_tracker_status_get_res3(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  32);
}

/**
 * @brief Get field res4 from tracker_status message
 *
 * @return  res4.
 */
static inline float mavlink_msg_tracker_status_get_res4(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  36);
}

/**
 * @brief Get field res5 from tracker_status message
 *
 * @return  res5.
 */
static inline float mavlink_msg_tracker_status_get_res5(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  40);
}

/**
 * @brief Get field res6 from tracker_status message
 *
 * @return  res6.
 */
static inline float mavlink_msg_tracker_status_get_res6(const mavlink_message_t* msg)
{
    return _MAV_RETURN_float(msg,  44);
}

/**
 * @brief Get field res7 from tracker_status message
 *
 * @return  res7.
 */
static inline uint32_t mavlink_msg_tracker_status_get_res7(const mavlink_message_t* msg)
{
    return _MAV_RETURN_uint32_t(msg,  48);
}

/**
 * @brief Get field sat_id from tracker_status message
 *
 * @return  satellite ID.
 */
static inline uint32_t mavlink_msg_tracker_status_get_sat_id(const mavlink_message_t* msg)
{
    return _MAV_RETURN_uint32_t(msg,  52);
}

/**
 * @brief Decode a tracker_status message into a struct
 *
 * @param msg The message to decode
 * @param tracker_status C-struct to decode the message contents into
 */
static inline void mavlink_msg_tracker_status_decode(const mavlink_message_t* msg, mavlink_tracker_status_t* tracker_status)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    tracker_status->time_boot_ms = mavlink_msg_tracker_status_get_time_boot_ms(msg);
    tracker_status->slon = mavlink_msg_tracker_status_get_slon(msg);
    tracker_status->polar = mavlink_msg_tracker_status_get_polar(msg);
    tracker_status->llon = mavlink_msg_tracker_status_get_llon(msg);
    tracker_status->llat = mavlink_msg_tracker_status_get_llat(msg);
    tracker_status->res1 = mavlink_msg_tracker_status_get_res1(msg);
    tracker_status->res2 = mavlink_msg_tracker_status_get_res2(msg);
    tracker_status->res3 = mavlink_msg_tracker_status_get_res3(msg);
    tracker_status->res4 = mavlink_msg_tracker_status_get_res4(msg);
    tracker_status->res5 = mavlink_msg_tracker_status_get_res5(msg);
    tracker_status->res6 = mavlink_msg_tracker_status_get_res6(msg);
    tracker_status->res7 = mavlink_msg_tracker_status_get_res7(msg);
    tracker_status->sat_id = mavlink_msg_tracker_status_get_sat_id(msg);
    tracker_status->mode = mavlink_msg_tracker_status_get_mode(msg);
    tracker_status->auto_pos = mavlink_msg_tracker_status_get_auto_pos(msg);
#else
        uint8_t len = msg->len < MAVLINK_MSG_ID_TRACKER_STATUS_LEN? msg->len : MAVLINK_MSG_ID_TRACKER_STATUS_LEN;
        memset(tracker_status, 0, MAVLINK_MSG_ID_TRACKER_STATUS_LEN);
    memcpy(tracker_status, _MAV_PAYLOAD(msg), len);
#endif
}
